#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_yes_clicked()
{
    this->setStyleSheet("#pushButton_yes{"
                          "qproperty-icon: url(:/happy.png);"
                          "qproperty-iconSize: 32px 32px; " // 必须同时设置iconSize
                        "}"
    );
    ui->label->setText("明天一起约会吧!现在关闭一切！出发！");
}





void Widget::on_label_linkActivated(const QString &link)
{
    this->close();
}
